package com.csun.cmny.provider.device.phone;

import com.csun.cmny.provider.device.phone.entity.PhoneMessageDataLoginAckEntity;
import com.csun.cmny.provider.utils.DateUtil;
import org.springframework.stereotype.Component;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-02-19 14:22
 * @Description: the class phone message encoder
 */
@Component
public class PhoneMessageEncoder {

    public PhoneMessageDataLoginAckEntity buildLoginAckMsg() {

        byte date[] = new byte[]{0x33, 0x35, 0x0e, 0x1b, 0x0a, 0x11, 0x14};

        PhoneMessageDataLoginAckEntity loginAckEntity = new PhoneMessageDataLoginAckEntity();
        loginAckEntity.setDate(DateUtil.getDate());
//        loginAckEntity.setDate(date);

        return loginAckEntity;
    }
}
